import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var DetailFormComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(DetailFormComponentViewmodelForm, _super);
    function DetailFormComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'zzbh_82e33934_xpp3',
            name: "{{zzbh_82e33934_xpp3}}",
            binding: 'zzbh',
            updateOn: 'blur',
            defaultI18nValue: '组织编号',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "zzbh", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'zzmc_87dc6865_ra63',
            name: "{{zzmc_87dc6865_ra63}}",
            binding: 'zzmc',
            updateOn: 'blur',
            defaultI18nValue: '组织名称',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "zzmc", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'zzlb_a5d7471f_bny5',
            name: "{{zzlb_a5d7471f_bny5}}",
            binding: 'zzlb',
            updateOn: 'blur',
            defaultI18nValue: '组织类别',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "zzlb", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'projectNote_86fd09cc_batz',
            name: "{{projectNote_86fd09cc_batz}}",
            binding: 'projectNote',
            updateOn: 'blur',
            defaultI18nValue: '备注',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "projectNote", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'sszz_5f7a6647_nvoh',
            name: "{{sszz_5f7a6647_nvoh}}",
            binding: 'sszz',
            updateOn: 'blur',
            defaultI18nValue: '组织类型',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "sszz", void 0);
    DetailFormComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '组织管理',
            enableValidate: true
        }),
        Injectable()
    ], DetailFormComponentViewmodelForm);
    return DetailFormComponentViewmodelForm;
}(Form));
export { DetailFormComponentViewmodelForm };
